package com.leyou.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.item.entity.CategoryBrand;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CategoryBrandMapper extends BaseMapper<CategoryBrand> {
    @Select("select category_id from tb_category_brand where brand_id = #{id}")
    public List<Long>  queryCategoryIdByBrandId(@Param("id")Long id);
}
